import React, { Component } from 'react'
import ProductInfo from './ProductInfo'

export class Home extends Component {
  render() {
    const { age, name, price } = this.props
    return (
      <div>
        <h4>我的年龄是: {age},购买的商品：{name},价格：{price}</h4>
        <ProductInfo/>
      </div>
    )
  }
}

export default Home